package com.apes.fn.scm.saleReport.service;


import com.apes.fn.scm.saleReport.service.process.SaleReportFactory;
import com.apes.fn.scm.saleReport.service.process.SaleReportProcess;
import com.apes.framework.api.DomainService;
import com.apes.framework.plugin.esb.api.SimpleRequest;
import org.springframework.stereotype.Service;



/**
 * 功能：销售明细报表
 *
 * @author cyy
 * @create 2023-03-13 16:52
 */
@Service("saleReportService")
public class SaleReportService extends DomainService {

    /**
     * 生成营业额明细与成本明细处理器
     * @param request
     */
    public void createSaleReport(SimpleRequest request) {
        String OrderType = request.get("ORDER_TYPE");
        SaleReportProcess saleReportProcess = SaleReportFactory.get(OrderType);
        saleReportProcess.process(request);
    }
}
